import request from '@/utils/request'

// 查询线下退款信息列表
export function listOfflineRefunded(query) {
  return request({
    url: '/business/offlineRefunded/list',
    method: 'get',
    params: query
  }) 
}

// 查询线下退款信息详细
export function getOfflineRefunded(id) {
  return request({
    url: '/business/offlineRefunded/' + id,
    method: 'get'
  })
}

// 新增线下退款信息
export function addOfflineRefunded(data) {
  return request({
    url: '/business/offlineRefunded',
    method: 'post',
    data: data
  })
}

// 修改线下退款信息
export function updateOfflineRefunded(data) {
  return request({
    url: '/business/offlineRefunded',
    method: 'put',
    data: data
  })
}

// 删除线下退款信息
export function delOfflineRefunded(id) {
  return request({
    url: '/business/offlineRefunded/' + id,
    method: 'delete'
  })
}
